home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
hc2_x
/
tcprogud.sit
/
TC Prog Guide
/
card_42911.txt
< prev
next >
Wrap
Text File
|
1991-02-27
|
1KB
|
67 lines
-- card: 42911 from stack: in
-- bmap block id: 0
-- flags: 0000
-- background id: 4755
-- name:
-- part 1 (field)
-- low flags: 00
-- high flags: 0007
-- rect: left=30 top=78 right=296 bottom=478
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part contents for card part 1
----- text -----
/*
* FILE: student.c
* AUTHOR: R.G.
* CREATED: June 25, 1990
*
* Student methods
*/
# include "student.h"
# include <stdio.h>
/******************************************************************
* override set()
******************************************************************/
void Student::set(void)
{
int temp_number;
Person::set(); /* in TC, may use: inherited::set() */
printf("Enter student number:\n");
scanf("%d",&temp_number); /* "shadowing" for TC safety */
student_num = temp_number;
}
/******************************************************************
* override print()
******************************************************************/
void Student::print(void)
{
Person::print(); /* in TC, may use: inherited::print() */
printf(", Student number: %d",student_num);
}
-- part contents for background part 7
----- text -----
136
-- part contents for background part 4
----- text -----
File 6 of 7: